<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.jaxplat.commons.Row"%>
<%@page import="com.jaxplat.commons.RowImpl"%>
<%@page import="com.rs.commons.RsConstant"%>
<%
    String contextPath = request.getContextPath();
			if (null == request.getAttribute("dsInfo")
					|| null == request.getAttribute("orderInfo")) {
				Row msg = new RowImpl();
				msg.addColumn("message", "您提交内容出错了。请按流程提交!");
				request.getRequestDispatcher("wap/msg.jsp").forward(request,
						response);
			}
			Row dsInfo = new RowImpl();
			Row orderInfo = new RowImpl();

			dsInfo = (Row) request.getAttribute("dsInfo");
			orderInfo = (Row) request.getAttribute("orderInfo");
%>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<head>
    <meta name="keywords" content="<%=session.getAttribute("keywords") %>" />
    <meta name="description" content="<%=session.getAttribute("description") %>" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>预约订单确认-云南移动无线城市</title>
	<link type="text/css" href="<%=contextPath %>/css/wap.css" rel="stylesheet" />
	<script type="text/javascript">

	function submitForm() {
		$("#form1").submit();
		}
		</script>
</head>
<body>
<%=session.getAttribute("headerContentWeb")%>
	<div class="wap">
		<div class="navW">
			<div class="marginAout navIn">
				<span><a href="<%=contextPath%>/wap/index.jsp?portaltype=1&version=2&areacode=<%=session.getAttribute("areacode") %>">预约管理</a>
				</span><span class="current"><a
					href="<%=request.getContextPath()%>/wap/doctorAction.do?method=initSearch_s1">预约挂号</a>
				</span><span><a href="<%=request.getContextPath()%>/wap/guide.jsp?portaltype=1&version=2&areacode=<%=session.getAttribute("areacode") %>">用户指南</a>
				</span>
			</div>
		</div>
		<div class="bread_nav2">
			<div class="step">
				<span>填写</span><span>→</span><span class="on">确认</span><span>→</span>
				<span>支付</span><span>→</span><span>完成</span>
			</div>
		</div>
	</div>
	<form name="form1" method="post"
		action="<%=request.getContextPath()%>/wap/reserve.do?method=commit&portaltype=1&version=2&areacode=<%=session.getAttribute("areacode")%>">
		<div class="h_div">
			<h1 class="h1">
				预约基本信息
			</h1>
		</div>
		<div class="tab_containt">
			<p>
				<span class="span_b">专家名称：</span><%=dsInfo.getString("doctor_name")%>
				<input id="ds_id" name="ds_id" type="hidden"
					value="<%=dsInfo.getLong("ds_id")%>" />
			</p>
			<p>
				<span class="span_b">专家职称： </span><%=dsInfo.getString("pro_title_name")%>
			</p>
			<p>
				<span class="span_b">所属科室： </span><%=dsInfo.getString("sec_name")%>
			</p>
			<p>
				<span class="span_b">医院名称：</span><%=dsInfo.getString("hos_name")%></p>
			<p>
				<span class="span_b">就诊时间：</span><%=com.jaxplat.util.DateUtils.parseDate(dsInfo
							.getDate("sc_date"))%>
				&nbsp;<%=dsInfo.getString("batch_name")%></p>

		</div>
		<div class="h_div">
			<h1 class="h1">
				患者基本信息
			</h1>
		</div>
		<div class="tab_containt">
			<p>
				<span class="span_b">身份证号码：</span><%=orderInfo.getString("id_no")%>
				<input name="id_no" type="hidden"
					value="<%=orderInfo.getString("id_no")%>" />
			</p>
			<p>
				<span class="span_b">患者姓名： </span><%=orderInfo.getString("applicant_name")%>
				<input name="applicant_name" type="hidden"
					value="<%=orderInfo.getString("applicant_name")%>" />
			</p>
			<p>
				<span class="span_b">患者性别： </span>
				<%
				    if ("m".equals(orderInfo.getString("gender"))) {
								out.print("男");
							} else {
								out.print("女");
							}
				%>
				<input name="gender" type="hidden"
					value="<%=orderInfo.getString("gender")%>" />
			</p>

			<p>
				<span class="span_b">出生日期：</span>
					<%=orderInfo.getString("birth_date")%>
			</p>
			<p>
				<span class="span_b">住址：</span><%=orderInfo.getString("applicant_addr")%>
				<input name="applicant_addr" type="hidden"
					value="<%=orderInfo.getString("applicant_addr")%>" />
			</p>
		</div>

		<div class="h_div">
			<h1 class="h1">
				支付信息
			</h1>
		</div>
		<div class="tab_content">
			<p>
				支付方式：
				<%
			    if ("1".equals(orderInfo.getString("pay_type"))) {
							out.print("手机支付");
						}
			%>
				<input name="pay_type" type="hidden"
					value="<%=orderInfo.getString("pay_type")%>" />
			</p>
			<p>
				支付手机号：
				<%=orderInfo.getString("mobile_no")%>
				<input name="mobile_no" type="hidden"
					value="<%=orderInfo.getString("mobile_no")%>" />
			</p>

			<p>
				<span class="span_b">挂号费：</span><span style="color: #fc4519;"><%=com.rs.util.Utils.formatMoney(RsConstant.DOCTOR_FEE
							.getDouble(dsInfo.getString("pro_title")), "0.00")%></span>元
			</p>
			<p>
				<span class="span_b">信息费：</span><span style="color: #fc4519;"><%=com.rs.util.Utils.formatMoney(RsConstant.RS_INFO_SERVICE_FEE, "0.00")%></span>元
			</p>
		</div>
		<p class="text_center">
			<input name="submit" type="submit" value="确认预约" class="login_btn" />
		</p>
	</form>
	</div>
<%=session.getAttribute("footerContentWeb")%>
</body>
</html>